/**
 * Handles the class PartOrder.
 * 
 * Author: Group 3
 * Date: 07-04-2014 Version: 1.0
 */

package modellayer;
public class PartOrder {

	private int amount, partOrderID, salesOrderID, productID;
	


	private Product product;
	
	
	
	public PartOrder(int amount, Product product, int salesOrderID) {
		this.amount = amount;
		this.product = product;
		this.salesOrderID = salesOrderID;
	}
	
	

	public PartOrder(int amount, int salesOrderID,
			int productID ) {
		this.amount = amount;
		this.salesOrderID = salesOrderID;
		this.productID = productID;
	}



	public PartOrder()
	{
		
	}
	
	/**
	 * @return the productID
	 */
	public int getProductID() {
		return productID;
	}

	/**
	 * @param productID the productID to set
	 */
	public void setProductID(int productID) {
		this.productID = productID;
	}

	/**
	 * @return the salesOrderID
	 */
	public int getSalesOrderID() {
		return salesOrderID;
	}

	/**
	 * @param salesOrderID the salesOrderID to set
	 */
	public void setSalesOrderID(int salesOrderID) {
		this.salesOrderID = salesOrderID;
	}
	
	public int getPartOrderID()
	{
		return partOrderID;
	}
	
	/**
	 * 
	 * @param partOrderID
	 */
	public void setPartOrderID(int partOrderID)
	{
		this.partOrderID = partOrderID;
	}
	
	/**
	 * 
	 * @param amount
	 */
	public void setAmount(int amount)
	{
		this.amount = amount;
	}
	
	/**
	 * 
	 * @return amount
	 */
	public int getAmount()
	{
		return amount;
	}
	
	
	/**
	 * @param product;
	 */
	public void setProduct(Product p)
	{
		this.product = p;
	}
	
	
	/**
	 * @return product
	 */
	public Product getProduct()
	{
		return product;
	}
}
